package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 子任务对象 sub_task
 * 
 * @author zhaoyu
 * @date 2025-06-18
 */
public class SubTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 子任务ID */
    private Long subTaskId;

    /** 所属主任务ID */
    private Long mainTaskId;

    /** 子任务名称 */
    @Excel(name = "子任务名称")
    private String subTaskName;

    /** 子任务描述 */
    private String description;

    /** 负责人ID */
    private Long assigneeId;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String assigneeName;

    /** 子任务状态(0=未开始, 1=进行中, 2=已完成, 3=异常) */
    @Excel(name = "子任务状态(0=未开始, 1=进行中, 2=已完成, 3=异常)")
    private Integer status;

    /** 删除标志(0=存在, 2=删除) */
    private String delFlag;

    public void setSubTaskId(Long subTaskId) 
    {
        this.subTaskId = subTaskId;
    }

    public Long getSubTaskId() 
    {
        return subTaskId;
    }
    public void setMainTaskId(Long mainTaskId) 
    {
        this.mainTaskId = mainTaskId;
    }

    public Long getMainTaskId() 
    {
        return mainTaskId;
    }
    public void setSubTaskName(String subTaskName) 
    {
        this.subTaskName = subTaskName;
    }

    public String getSubTaskName() 
    {
        return subTaskName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setAssigneeId(Long assigneeId) 
    {
        this.assigneeId = assigneeId;
    }

    public Long getAssigneeId() 
    {
        return assigneeId;
    }
    public void setAssigneeName(String assigneeName) 
    {
        this.assigneeName = assigneeName;
    }

    public String getAssigneeName() 
    {
        return assigneeName;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subTaskId", getSubTaskId())
            .append("mainTaskId", getMainTaskId())
            .append("subTaskName", getSubTaskName())
            .append("description", getDescription())
            .append("assigneeId", getAssigneeId())
            .append("assigneeName", getAssigneeName())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
